function xml = arch2xml(master, type, bandwidth, components, mapper)
% xml = arch2xml(master, type, bandwidth, components, mapper)

if nargin == 1
  arglist = master;
else
  arglist = arch2cmd(master, type, bandwidth, components, mapper);
end

[status, xml] = system(['/home/wcaarls/src/sc/dse/arch.py ' ...
		    arglist]);

if status ~= 0
  disp('Couldn''t generate XML')
  disp(xml);
  xml = '';
end

start = strfind(xml, '<document>');
xml = xml(start:end);
